home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2001 August / CMycha200108.iso / Zaczarowane / main.swf / scripts / DefineButton2_265 / BUTTONCONDACTION on(release).as < prev   
Text File  |  2001-06-06  |  694b  |  27 lines

  1. on(release){
  2.    x = getProperty(_root.mc_flaga0, _X);
  3.    y = getProperty(_root.mc_flaga0, _Y);
  4.    stopDrag();
  5.    if(_root.losowanie == 0)
  6.    {
  7.       if(20 < x && y < -210 && x < 120 && -310 < y)
  8.       {
  9.          setProperty(_root.mc_flagi.mc_flaga0, _X, 70);
  10.          setProperty(_root.mc_flagi.mc_flaga0, _Y, -260);
  11.          play();
  12.          _root.f0 = 0;
  13.          _root.OK.start();
  14.       }
  15.       else
  16.       {
  17.          setProperty(_root.mc_flagi.mc_flaga0, _X, -186);
  18.          setProperty(_root.mc_flagi.mc_flaga0, _Y, 195);
  19.       }
  20.    }
  21.    else
  22.    {
  23.       setProperty(_root.mc_flagi.mc_flaga0, _X, -186);
  24.       setProperty(_root.mc_flagi.mc_flaga0, _Y, 195);
  25.    }
  26. }
  27.